export default {
    mounted(el: any) {
        const imgSrc = el.src
        el.src = ''
        const observer = new IntersectionObserver(([{ isIntersecting }]) => {
            console.log("触发了");
            console.log(isIntersecting);

            if (isIntersecting) {
                el.src = imgSrc
                observer.unobserve(el)
            }

        })
        observer.observe(el)
    },
}